package cn.gogoyc.org.mapper;

import cn.gogoyc.org.basic.mapper.BaseMapper;
import cn.gogoyc.org.domain.Employee;

import java.util.List;


/**
 * The type employee mapper.
 * 员工Mapper层,已用Base抽取方法
 *
 * @author Yang
 */
public interface EmployeeMapper extends BaseMapper<Employee> {
    /**
     * Remove role by employee id.
     *
     * @param id the id
     */
    void removeRoleByEmployeeId(Long id);

    /**
     * Add role.
     *
     * @param employee the employee
     */
    void addRole(Employee employee);

    Employee loadByLogininfoId(Long id);

    List<Employee> queryByShopId(Long shopId);
}
